<template>
  <nav-bar class="profileNav">
    <div slot="center" class="profileLogo">
      <img id="fishLogo" src="~assets/img/logo/fishLogo.png" alt="游出我的范">
      <span class="mine">发现</span>
    </div>
    <div slot="right" class="publish" @click="toSelectShare"><img src="@/assets/img/find/加号.svg" alt=""></div>
  </nav-bar>
</template>

<script>
  import NavBar from "components/common/navbar/NavBar";
  import { mapActions } from 'vuex';

  export default {
    name: "Find_Nav",
    components:{
      NavBar,
    },
    methods: {
      ...mapActions(['handler_picture_data']),
      toSelectShare() {
        this.handler_picture_data()
        this.$router.push({
          path: '/editPublish'
        })
      }
    },
  }
</script>

<style scoped>
  .profileNav{
    background-color: #11dff1;

    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
  }
  .profileLogo{
    height: 44px;
    display: flex;
    justify-content: center;
  }
  .mine{
    font-size: 18px;
    color: #fff;
    margin: 2px 0 0 5px;
  }
  #fishLogo{
    height: 80%;
    margin-top: 4px;
  }
/* 发布按钮样式 */
.publish {
  text-align: right;
  padding: 8px;

}
.publish img {
  height: 30px;
}
</style>
